/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package salarie;

/**
 *
 * @author Gatoper
 */
public class Hourly  extends Job{
    private int hoursWorked;

    public Hourly(int hoursWorked) {
        this.hoursWorked = hoursWorked;
    }

    public int getHoursWorked() {
        return hoursWorked;
    }

    public void setHoursWorked(int hoursWorked) {
        this.hoursWorked = hoursWorked;
    }
    
    public void addHours(int moreHours){
        hoursWorked += moreHours;
    }
    
    public String toString(){
        String result = "HooursWorked: " + hoursWorked + "\n";
	return result;
    }
}
